/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.mer.entity.SmallReport;
import com.kaaction.modules.mer.dao.SmallReportDao;

/**
 * 小报告Service
 * @author huanghaiming
 * @version 2017-05-25
 */
@Service
@Transactional(readOnly = true)
public class SmallReportService extends CrudService<SmallReportDao, SmallReport> {

	public SmallReport get(String id) {
		return super.get(id);
	}
	
	public List<SmallReport> findList(SmallReport smallReport) {
		return super.findList(smallReport);
	}
	
	public Page<SmallReport> findPage(Page<SmallReport> page, SmallReport smallReport) {
		return super.findPage(page, smallReport);
	}
	
	@Transactional(readOnly = false)
	public void save(SmallReport smallReport) {
		super.save(smallReport);
	}
	
	@Transactional(readOnly = false)
	public void delete(SmallReport smallReport) {
		super.delete(smallReport);
	}

	@Transactional(readOnly = false)
	public void insSmallReport(SmallReport smallReport) {
		smallReport.preInsert();
		super.dao.insert(smallReport);
	}
	
}